<template>
    <div style="margin: 15px">
        <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="礼品卡券管理" name="1" :key="'1'">
                <GiftBatch  v-if="activeName == '1'"></GiftBatch>
            </el-tab-pane>
            <el-tab-pane label="兑换记录" name="2" :key="'2'">
                <Exchange v-if="activeName == '2'"></Exchange>
            </el-tab-pane>
        </el-tabs>
  </div>
</template>

<script>
import GiftBatch from './giftBatch/index.vue'
import Exchange from './exchange/index.vue'

export default {
    data() {
        return {
            activeName: '1'
        }
    },
    components: {
        GiftBatch,
        Exchange
    },
    methods: {
        handleClick(tab, event) {
                

        },
    }
}
</script>

<style lang="scss" scoped>

</style>